// const { ipcRenderer } = require('electron');

// export const readHistoryArticleRecords =  (title) => {
//     const filePath = './db/articlehistory/demo';

//     ipcRenderer.send('read-local-file', filePath);

//     ipcRenderer.on('read-local-file-reply', function (event, data) {
//       const records = JSON.parse(data);
//       callback(records);
//     })
// }

// export const saveHistoryArticleRecords =  (title, recordsContent) => {
//     const filePath = './db/articlehistory/'+title;

//     ipcRenderer.send('save-local-file', filePath);

//     ipcRenderer.on('save-local-file-reply', function (event, data) {
//       callback(data)
//     })
// }


